package com.zx.map.dao.impl;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Component;

import com.zx.map.dao.AgentLeftDao;
import com.zx.map.dao.mapper.AgentLeftMapper;
import com.zx.map.dao.model.AgentLeft;
import com.zx.map.dao.model.AgentLeftExample;
/**
 *
 * @author ysm
 *
 */
@Component("agentLeftDao")
public class AgentLeftImpl implements AgentLeftDao {

    @Autowired
    private AgentLeftMapper mapper;

    /**
     * 查找list
     */
	@Override
	public List<AgentLeft> getListByExample(AgentLeftExample example) throws DataAccessException {
		return mapper.selectByExample(example);
	}

	@Override
	public int deleteByByExample(AgentLeftExample example) {
		return mapper.deleteByExample(example);
	}

	@Override
	public int saveBatch(List<AgentLeft> agentInfoList) {
		return mapper.saveBatch( agentInfoList);
	}

}
